package com.hk.Mgr.web.message.order;

import com.hk.Mgr.web.message.RequestMsg;
import com.hk.commons.StringHelper;

public class PaymentReq extends RequestMsg {

	private static final long serialVersionUID = 2436545703822777831L;

	public Long id;

	/**
	 * 用户id
	 */
	private Long userId;

	/**
	 * 投资者的盈米账户ID
	 */
	private String accountId;

	/**
	 * 账户姓名
	 */
	private String accountName;

	/**
	 * 身份证号，字母大写
	 */
	private String identityNo;

	/**
	 * 银行码
	 */
	private String bankId;

	/**
	 * 填写该银行卡号
	 */
	private String paymentNo;

	/**
	 * 办理银行卡时的注册电话号码
	 */
	private String phone;

	/**
	 * 渠道
	 */
	private Integer channel;


	public Integer getChannel() {
		return channel;
	}

	public void setChannel(Integer channel) {
		this.channel = channel;
	}

	/**
	 * 盈米订单专用
	 */
	private String paymentMethodId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getAccountName() {
		if (StringHelper.isNotEmpty(accountName)) {
			return accountName.trim();
		}
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public String getIdentityNo() {
		return identityNo;
	}

	public void setIdentityNo(String identityNo) {
		this.identityNo = identityNo;
	}

	public String getBankId() {
		return bankId;
	}

	public void setBankId(String bankId) {
		this.bankId = bankId;
	}

	public String getPaymentNo() {
		return paymentNo;
	}

	public void setPaymentNo(String paymentNo) {
		this.paymentNo = paymentNo;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPaymentMethodId() {
		return paymentMethodId;
	}

	public void setPaymentMethodId(String paymentMethodId) {
		this.paymentMethodId = paymentMethodId;
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	@Override
	public String toString() {
		return "PaymentReq{" +
				"id=" + id +
				", userId=" + userId +
				", accountId='" + accountId + '\'' +
				", accountName='" + accountName + '\'' +
				", identityNo='" + identityNo + '\'' +
				", bankId='" + bankId + '\'' +
				", paymentNo='" + paymentNo + '\'' +
				", phone='" + phone + '\'' +
				", channel=" + channel +
				", paymentMethodId='" + paymentMethodId + '\'' +
				'}';
	}
}
